//
//  RACSignal+XHHTTPServiceAdditions.m
//  XHNetwork
//
//  Created by xinph on 2020/3/11.
//  Copyright © 2020 xinph. All rights reserved.
//

#import "RACSignal+XHHTTPServiceAdditions.h"
#import "XHHTTPResponse.h"

@implementation RACSignal (XHHTTPServiceAdditions)

- (RACSignal *)xh_parsedResults
{
    return [self map:^(XHHTTPResponse *response) {
        NSAssert([response isKindOfClass:XHHTTPResponse.class], @"Expected %@ to be an XHHTTPResponse.", response);
        return response.parsedResult;
    }];
}

@end
